<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TaskJobHistory
 *
 * @ORM\Table(name="task_job_history")
 * @ORM\Entity
 */
class TaskJobHistory
{
    /**
     * @var integer
     *
     * @ORM\Column(name="job_id", type="integer", nullable=false)
     */
    private $jobId = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="step_id", type="integer", nullable=false)
     */
    private $stepId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="step_name", type="string", length=45, nullable=false)
     */
    private $stepName = '';

    /**
     * @var string
     *
     * @ORM\Column(name="message", type="text", length=65535, nullable=false)
     */
    private $message;

    /**
     * @var integer
     *
     * @ORM\Column(name="run_status", type="integer", nullable=false)
     */
    private $runStatus = '0';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="run_date", type="date", nullable=false)
     */
    private $runDate = '0000-00-00';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="run_time", type="time", nullable=false)
     */
    private $runTime = '00:00:00';

    /**
     * @var integer
     *
     * @ORM\Column(name="run_duration", type="integer", nullable=false)
     */
    private $runDuration = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="server_name", type="string", length=45, nullable=false)
     */
    private $serverName = '';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set jobId
     *
     * @param integer $jobId
     *
     * @return TaskJobHistory
     */
    public function setJobId($jobId)
    {
        $this->jobId = $jobId;

        return $this;
    }

    /**
     * Get jobId
     *
     * @return integer
     */
    public function getJobId()
    {
        return $this->jobId;
    }

    /**
     * Set stepId
     *
     * @param integer $stepId
     *
     * @return TaskJobHistory
     */
    public function setStepId($stepId)
    {
        $this->stepId = $stepId;

        return $this;
    }

    /**
     * Get stepId
     *
     * @return integer
     */
    public function getStepId()
    {
        return $this->stepId;
    }

    /**
     * Set stepName
     *
     * @param string $stepName
     *
     * @return TaskJobHistory
     */
    public function setStepName($stepName)
    {
        $this->stepName = $stepName;

        return $this;
    }

    /**
     * Get stepName
     *
     * @return string
     */
    public function getStepName()
    {
        return $this->stepName;
    }

    /**
     * Set message
     *
     * @param string $message
     *
     * @return TaskJobHistory
     */
    public function setMessage($message)
    {
        $this->message = $message;

        return $this;
    }

    /**
     * Get message
     *
     * @return string
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * Set runStatus
     *
     * @param integer $runStatus
     *
     * @return TaskJobHistory
     */
    public function setRunStatus($runStatus)
    {
        $this->runStatus = $runStatus;

        return $this;
    }

    /**
     * Get runStatus
     *
     * @return integer
     */
    public function getRunStatus()
    {
        return $this->runStatus;
    }

    /**
     * Set runDate
     *
     * @param \DateTime $runDate
     *
     * @return TaskJobHistory
     */
    public function setRunDate($runDate)
    {
        $this->runDate = $runDate;

        return $this;
    }

    /**
     * Get runDate
     *
     * @return \DateTime
     */
    public function getRunDate()
    {
        return $this->runDate;
    }

    /**
     * Set runTime
     *
     * @param \DateTime $runTime
     *
     * @return TaskJobHistory
     */
    public function setRunTime($runTime)
    {
        $this->runTime = $runTime;

        return $this;
    }

    /**
     * Get runTime
     *
     * @return \DateTime
     */
    public function getRunTime()
    {
        return $this->runTime;
    }

    /**
     * Set runDuration
     *
     * @param integer $runDuration
     *
     * @return TaskJobHistory
     */
    public function setRunDuration($runDuration)
    {
        $this->runDuration = $runDuration;

        return $this;
    }

    /**
     * Get runDuration
     *
     * @return integer
     */
    public function getRunDuration()
    {
        return $this->runDuration;
    }

    /**
     * Set serverName
     *
     * @param string $serverName
     *
     * @return TaskJobHistory
     */
    public function setServerName($serverName)
    {
        $this->serverName = $serverName;

        return $this;
    }

    /**
     * Get serverName
     *
     * @return string
     */
    public function getServerName()
    {
        return $this->serverName;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
